#ifndef ECGDEVICETHREAD_H
#define ECGDEVICETHREAD_H
#include "ECGDevice.h"
#include <qthread.h>
class ECGDeviceThread : public QThread {
    Q_OBJECT
public:
    explicit ECGDeviceThread(ECGDevice* device, QObject* parent = nullptr);
    void run() override;
    void stopThread();

private:
    ECGDevice* m_device;
    bool m_running;
};

#endif // ECGDEVICETHREAD_H
